//
//  LBNetwork.h
//  V-Learn
//
//  Created by Apple on 2018/12/25.
//  Copyright © 2018 yxk. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LBNetwork : NSObject

typedef void (^BRSuccess)(NSURLSessionDataTask * task,id responseObject);
typedef void (^BRError)(NSURLSessionDataTask * task,NSError * error);

+(void)POST:(NSString *)url parameters:(NSDictionary *)parameter isShowHUD:(BOOL)isShowHUD HUDString:(NSString *)string isToken:(BOOL)isToken success:(BRSuccess)success error:(BRError)erro;

+ (void)UploadImage:(NSArray *)imageArray parameters:(NSDictionary *)dict success:(BRSuccess)success error:(BRError)erro;

+ (void)POSTWithSession:(NSString *)url parameters:(NSDictionary *)parameter isShowHUD:(BOOL)isShowHUD HUDString:(NSString *)string isToken:(BOOL)isToken success:(BRSuccess)success error:(BRError)erro;
@end

NS_ASSUME_NONNULL_END
